home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / libsrc~1.z / libsrc~1 / sthead.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-28  |  807 b   |  57 lines

  1. #
  2. | public labels
  3.     .globl    begtext
  4.     .globl    begdata
  5.     .globl    begbss
  6.     .globl    _exit
  7.     .globl    _data_org
  8. | external references
  9.     .globl    _main
  10.     .globl    _stackpt
  11. #ifdef ACK
  12.     .globl    EXIT
  13.     .globl    .trpim
  14.     .globl    .trppc
  15. #endif ACK
  16. #ifdef ACK
  17.         .text
  18.         .data
  19.         .bss
  20. #endif ACK
  21.  
  22.         .text
  23.         .even
  24.  
  25. begtext:
  26.     movl    _stackpt,sp
  27.     jsr    _main
  28. #ifdef ACK
  29. EXIT:
  30. #endif ACK
  31. _exit:
  32.     jra    _exit        | this will never be executed
  33.  
  34.         .data
  35.         .even
  36. begdata:
  37.     | fs needs to know where build stuffed table
  38. _data_org:
  39.     | 0xDADA is magic number for build
  40.     .word    0xDADA,0,0,0,0,0,0,0
  41. #ifdef ACK
  42. .trpim:    .word    0
  43. .trppc:    .long    0
  44. #endif ACK
  45.  
  46. #ifndef __GNUC__
  47.         .bss
  48. begbss:
  49. #else
  50.         .even
  51. #ifdef __MSHORT__
  52.         .comm begbss,2 | gas does'nt have .bss, only .comm and .lcomm
  53. #else
  54.         .comm begbss,4 | gas does'nt have .bss, only .comm and .lcomm
  55. #endif
  56. #endif
  57.